<!doctype html><html xmlns="http://www.w3.org/1999/xhtml" id="html">
    <head>
        <title></title>
        <meta http-equiv="content-type" content="text/html; charset=utf-8" />
        <base href="<?= base_url(1); ?>" />
        <link type="text/css" href="css/main.css?v=<?= $config['version'] ?>" rel="stylesheet" />
    </head>
    <body>
        <?php include(VIEWPATH . 'common/main_header.php'); ?>
        <div class="datalist"><table id="flexigrid" style="display:none"></table></div>
        <script type="text/javascript">
            $(function(){
                $("#flexigrid").flexigrid($.extend(SG.flexOptions, {
                    url: '<?= site_url('datastatistics/servermap/flexigrid') ?>',
                    colModel : [
                        //{display: 'ID', name : 'id', width : '5%', iskey:true, hide:true},
                        {display: '<?=  translate('DATASTATISTICS_DATABASECONTROL_PLATFORM') ?>', name : 'platform', width : '120'},
                        {display: '<?=  translate('DATASTATISTICS_DATABASECONTROL_QUDAO')?>', name : 'qudao', width : '120'},
                        {display: '<?=  translate('DATASTATISTICS_DATABASECONTROL_AREANUM')?>', name : 'areanum', width : '100', process: formatSearch},
                        {display: '<?=  translate('DATASTATISTICS_DATABASECONTROL_AREANAME')?>', name : 'areaname', width : '150'},
                        {display: '<?=  translate('DATASTATISTICS_DATABASECONTROL_DATABASEIP')?>', name : 'dbip', width : '150'},  
                        {display: '<?=  translate('DATASTATISTICS_DATABASECONTROL_DBTYPE')?>', name : 'dbtype', width : '150'},                
                        {display: '<?=  translate('DATASTATISTICS_DATABASECONTROL_DATABASE')?>', name : 'dbname', width : '150'},
                        {display: '<?=  translate('DATASTATISTICS_DATABASECONTROL_USERNAME')?>', name : 'username', width : '150'}, 
                        {display: '<?=  translate('DATASTATISTICS_DATABASECONTROL_PASSWORD')?>', name : 'userpwd', width : '150',hide:'true'}, 
                        {display: '<?=  translate('DATASTATISTICS_DATABASECONTROL_STARTTIME')?>', name : 'starttime', width : '150'},
                                          
                        {display: '<?=  translate('DATASTATISTICS_DATABASECONTROL_ZUCONG')?>', name : 'zucong', width : '100',hide:'true'},
                          
                        {display: '<?= translate('MANAGE') ?>', name: 'id', width: 135, sortable: false, process: formatOp}                      
                    ],
                    buttons: [              
                        { name: 'add', displayname: "<?=translate('ADD')?>", title: "<?=translate('ADD')?>", bclass: 'add', onpress: multi },
                        {name: 'delete', displayname: "<?= translate('DEL') ?>", title: "<?= translate('DEL') ?>", bclass: 'delete', onpress: multi},
                    ],
                    searchitems : true,
                    sortname: "areanum,platform",
                    sortorder: "asc",
                }));
                SG.admin = $.extend(SG.admin,{
                    multi_url:'<?= site_url("datastatistics/servermap/multi/") ?>',
                    table:'server_mapping'
                });
                    SG.admin.add_url = '<?= site_url("datastatistics/servermap/add/") ?>';
                    SG.admin.edit_url = '<?= site_url("datastatistics/servermap/edit/") ?>';
                    SG.admin.del_url = '<?= site_url("datastatistics/servermap/del/") ?>';
            });
        </script>
    </body>
</html>